# -*- coding: utf-8 -*-
#from __future__ import unicode_literals

from django.contrib import admin
from sign.models import Event, Guest
# Register your models here.
#63page

class EventAdmin(admin.ModelAdmin):
    list_display = ['name', 'status', 'start_time','id']
    search_fields = ["name"]#搜索栏
    list_filter = ["status"] #过滤器

class GuestAdmin(admin.ModelAdmin):
    list_display = ['realname', 'phone','email','sign','create_time','event']
    search_fields = ["realname", "phone"]#搜索栏
    list_filter = ["sign"]#过滤栏

admin.site.register(Event,EventAdmin)#将数据在后台里面展示出来
admin.site.register(Guest,GuestAdmin)
